#ifndef DependencyPipe2OSibling_H
#define DependencyPipe2OSibling_H
#include"DependencyPipe.h"

class DependencyPipe2OSibling : public DependencyPipe{
protected:
	virtual void addExtendedFeatures(DependencyInstance *instance, FeatureVector *fv);
	
	void addSiblingFeatures(DependencyInstance *instance, int ch1, int ch2, bool isST, FeatureVector *fv);
	
	void addTripFeatures(DependencyInstance *instance, int par, int ch1, int ch2, FeatureVector *fv);

	virtual void writeExtendedFeatures(DependencyInstance *instance, ObjectWriter &out);
	
public:
	DependencyPipe2OSibling(ParserOptions *options);

	virtual ~DependencyPipe2OSibling();

	void fillFeatureVectors(DependencyInstance* instance, 
		vector<vector<vector<double> > > &probs, vector<vector<vector<double> > > &probs_trips,
		vector<vector<vector<double> > > &probs_sibs, vector<vector<vector<vector<double> > > > &nt_probs, 
		Parameters* params);

	DependencyInstance* readInstance(ObjectReader &in, int length, vector<vector<vector<double> > > &probs,
		vector<vector<vector<double> > > &probs_trips, vector<vector<vector<double> > > &probs_sibs,
		vector<vector<vector<vector<double> > > > &nt_probs, Parameters* params);
};
#endif
